package com.dhecp.project.storage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.storage.domain.DeliveryBox;

/**
 * DAO
 * @author Jason
 */
public interface DeliveryBoxMapper extends GenericDao<DeliveryBox, String>  {

	/**
     * 查询实体
     * @author Jason
	 */
	List<DeliveryBox> select(Map<String, Object> params);

	/**
     * 查询实体
     * @author Jason
	 */
	DeliveryBox findByBid(String bid);

	/**
	 * 新增实体
	 * @author Jason
	 */
	int insertDeliveryBox(DeliveryBox entity);

	/**
	 *@Description: 修改审核状态
	 */
	int updateState(@Param("bid")String bid, @Param("stateName")String stateName);

	/**
	 * 通过bid删除
	 * @author Jason
	 */
	int deleteByBid(@Param("bid")String bid);

}
